package com.ztesoft.ossup.report.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.ztesoft.ossup.report.domain.ReportCondition;

/**
 * Created by luxiang on 16/9/21.
 */
public interface ReportConditionRepo extends JpaRepository<ReportCondition, Long>, JpaSpecificationExecutor<ReportCondition> {
	
	List<ReportCondition> findByReportIdOrderBySortOrderAsc(Long reportId);
	
	List<ReportCondition> findByReportIdAndCode(Long reportId,String code);
	
	void deleteByReportId(Long reportId);
}
